﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Setup/MasterPage.master" AutoEventWireup="true" CodeFile="Menus.aspx.cs" Inherits="Setup_Menus" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <style type="text/css">
        .style1
        {
            width: 132px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <table style="width:100%;">
        <tr>
            <td valign="top">
                <asp:TreeView ID="TreeView1" runat="server" ImageSet="XPFileExplorer" 
                    NodeIndent="15" onselectednodechanged="TreeView1_SelectedNodeChanged">
                    <ParentNodeStyle Font-Bold="False" />
                    <HoverNodeStyle Font-Underline="True" ForeColor="#6666AA" />
                    <SelectedNodeStyle BackColor="#B5B5B5" Font-Underline="False" 
                        HorizontalPadding="0px" VerticalPadding="0px" />
                    <NodeStyle Font-Names="Tahoma" Font-Size="8pt" ForeColor="Black" 
                        HorizontalPadding="2px" NodeSpacing="0px" VerticalPadding="2px" />
                </asp:TreeView>
            </td>
            <td>
                当前节点<asp:Literal ID="nowNode" runat="server"></asp:Literal>
&nbsp;<table style="width:100%;">
                    <tr>
                        <td class="style1">
                            显示文字</td>
                        <td>
                            <asp:TextBox ID="showtext" runat="server"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="style1">
                            表名</td>
                        <td>
                            <asp:TextBox ID="tableName" runat="server"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="style1">
                            主表主键</td>
                        <td>
                            <asp:TextBox ID="pkname" runat="server"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="style1">
                            菜单显示字段</td>
                        <td>
                            <asp:TextBox ID="tableshow" runat="server"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="style1">
                            父字段/值</td>
                        <td>
                            父字段名<asp:TextBox ID="pname" runat="server"></asp:TextBox>
                            父字段开始值<asp:TextBox ID="pvalue" runat="server"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="style1">
                            从表表名</td>
                        <td>
                            <asp:TextBox ID="ftablename" runat="server"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="style1">
                            从表外键</td>
                        <td>
                            <asp:TextBox ID="fkname" runat="server"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="style1">
                            XML名</td>
                        <td>
                            <asp:TextBox ID="xmlName" runat="server"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="style1">
                            自动生成子节点</td>
                        <td>
                            <asp:CheckBox ID="autochild" runat="server" />
                        </td>
                    </tr>
                    <tr>
                        <td class="style1">
                            使用自定义菜单</td>
                        <td>
                            <asp:CheckBox ID="usemenu" runat="server" />
                            类名<asp:TextBox ID="menuclassname" runat="server"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="style1">
                            是否分隔栏</td>
                        <td>
                            <asp:CheckBox ID="issplit" runat="server" />
                        </td>
                    </tr>
                    <tr>
                        <td class="style1">
                            固定地址</td>
                        <td>
                            <asp:TextBox ID="url" runat="server"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="style1">
                            权限</td>
                        <td>
                            允许的角色：<asp:CheckBoxList ID="allowRole" runat="server" RepeatColumns="6" 
                                RepeatDirection="Horizontal">
                            </asp:CheckBoxList>
                            <br />
                            允许的管理员：<asp:CheckBoxList ID="allowAdmin" runat="server" RepeatColumns="6" 
                                RepeatDirection="Horizontal">
                            </asp:CheckBoxList>
                        </td>
                    </tr>
                    <tr>
                        <td class="style1">
                            继承父权限</td>
                        <td>
                            <asp:CheckBox ID="fp" runat="server" />
                        </td>
                    </tr>
                    <tr>
                        <td class="style1">
                            <asp:Button ID="Button1" runat="server" Text="添加" onclick="Button1_Click" />
                        </td>
                        <td>
                            &nbsp;</td>
                    </tr>
                    <tr>
                        <td class="style1">
                            显示文字</td>
                        <td>
                            <asp:TextBox ID="showtextedit" runat="server"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="style1">
                            表名</td>
                        <td>
                            <asp:TextBox ID="tableNameEdit" runat="server"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="style1">
                            主表主键</td>
                        <td>
                            <asp:TextBox ID="pknameedit" runat="server"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="style1">
                            菜单显示字段</td>
                        <td>
                            <asp:TextBox ID="tableshowedit" runat="server"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="style1">
                            父字段/值</td>
                        <td>
                            父字段名<asp:TextBox ID="pnameedit" runat="server"></asp:TextBox>
                            父字段开始值<asp:TextBox ID="pvalueedit" runat="server"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="style1">
                            从表表名</td>
                        <td>
                            <asp:TextBox ID="ftablenameedit" runat="server"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="style1">
                            从表外键</td>
                        <td>
                            <asp:TextBox ID="fknameedit" runat="server"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="style1">
                            XML名</td>
                        <td>
                            <asp:TextBox ID="xmlnameEdit" runat="server"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="style1">
                            自动生成子节点</td>
                        <td>
                            <asp:CheckBox ID="autochildEdit" runat="server" />
                        </td>
                    </tr>
                    <tr>
                        <td class="style1">
                            使用自定义菜单</td>
                        <td>
                            <asp:CheckBox ID="usermenuedit" runat="server" />
                            类名<asp:TextBox ID="menuclassnameedit" runat="server"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="style1">
                            是否分隔栏</td>
                        <td>
                            <asp:CheckBox ID="issplitEdit" runat="server" />
                        </td>
                    </tr>
                    <tr>
                        <td class="style1">
                            固定地址</td>
                        <td>
                            <asp:TextBox ID="urledit" runat="server"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="style1">
                            权限</td>
                        <td>
                            允许的角色：<asp:CheckBoxList ID="allowroleedit" runat="server" RepeatColumns="6" 
                                RepeatDirection="Horizontal">
                            </asp:CheckBoxList>
                            <br />
                            允许的管理员：<asp:CheckBoxList ID="allowadminedit" runat="server" RepeatColumns="6" 
                                RepeatDirection="Horizontal">
                            </asp:CheckBoxList>
                        </td>
                    </tr>
                    <tr>
                        <td class="style1">
                            继承父权限</td>
                        <td>
                            <asp:CheckBox ID="fpedit" runat="server" />
                        </td>
                    </tr>
                    <tr>
                        <td class="style1">
                            <asp:Button ID="Button2" runat="server" onclick="Button2_Click" Text="修改" />
                            <asp:Button ID="delbtn" runat="server" onclick="delbtn_Click" Text="删除" />
                        </td>
                        <td>
                            &nbsp;</td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
</asp:Content>

